﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using PraxisRent.Entities;

namespace PraxisRent.Repository.Mapping
{
    public class OPERADORMap:EntityTypeConfiguration<OPERADOR>
    {
        public OPERADORMap()
        {
            this.HasKey(t => t.Id);

            this.Property(t => t.Descripcion)
                .IsRequired()
                .HasMaxLength(10);

            this.ToTable("OPERADOR");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.Descripcion).HasColumnName("Descripcion");
        }
    }
}
